package com.kuang.dao;

import com.kuang.pojo.Student;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface StudentMapper {
    //查询所有学生的信息以及对应老师的信息
    @Select("select s.id,s.name,t.name from student s,teacher t where s.tid = t.id")
    public List<Student> getStudent();
}
